package cn.schoolwow.quickdao.module.database.dql.response.flow.common;

import cn.schoolwow.quickdao.module.database.dql.response.flow.common.resultSet.*;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class GetResultSetArrayFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new SetResultSetPropertyListFlow())
                .next(new MatchEntityFlow())
                .next(new MatchClazzFlow())
                .next(new MatchQueryContextFlow())
                .next(new MatchQueryColumnTypeMappingFlow())
                .next(new SetResultSetArrayFlow())
                .execute();
    }

    @Override
    public String name() {
        return "获取ResultSet变为JSONArray";
    }

}
